From a0b0302a08456f071b4b65a6084819048e58b59c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 12 Aug 2010 17:06:21 +0100 Subject: [PATCH] tools/python: Remove non-ASCII characters introduced by fffedd3d70e1. fffedd3d70e1 introduced into tools/python/xen/util/vscsi_util.py high-bit-set characters which appear to be UTF-8 for non-breaking spaces. Replace them with spaces to avoid getting a Python syntax error. Signed-off-by: Ian Jackson --- tools/python/xen/util/vscsi_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/util/vscsi_util.py b/tools/python/xen/util/vscsi_util.py index 9abf66b84b..c8c2f36641 100644 --- a/tools/python/xen/util/vscsi_util.py +++ b/tools/python/xen/util/vscsi_util.py @@ -97,7 +97,7 @@ def _vscsi_get_scsidevices_by_lsscsi(option = ""): devices = [] for scsiinfo in os.popen('{ lsscsi -g %s; } 2>/dev/null' % option).readlines(): -        s = scsiinfo.replace(']', '] ').split() + s = scsiinfo.replace(']', '] ').split() hctl = s[0][1:-1] try: devname = s[-2].split('/dev/')[1] -- 2.30.2